package com.jacky.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: jacky
 * @date: 2018/8/10
 * Time: 9:33
 * Description:
 **/

@RestController
public class Provide2 {

    Logger logger = LoggerFactory.getLogger(Provide2.class);

    @GetMapping("/hello")
   private String sayHello(){
        logger.info("------------------------------------------");
      /*  int flag= 1;
        if (flag==1){
            int b=1/0;
        }*/
       return "hello jacky";
   }
}